<?xml version="1.0" encoding="gb2312"?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">
  <xsl:output method="text" />
  <xsl:param name="numberFormat" />
  <xsl:param name="pattern" />
  <xsl:decimal-format name="us" grouping-separator="," decimal-separator="." />
  <xsl:decimal-format name="eu" grouping-separator="." decimal-separator="," />
  <xsl:decimal-format name="fr" grouping-separator=" " decimal-separator="," />
  <xsl:decimal-format name="nz" grouping-separator="'" decimal-separator="." />
  <xsl:template match="/number">
    <xsl:value-of select="translate(format-number(current(), $pattern, $numberFormat), '~', '-')" />
  </xsl:template>
</xsl:stylesheet>